package com.yvan.serverless.jdbc;

import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class StringNullConvert implements DaoResultConvert {

    @Override
    public boolean isMatch(Map<String, Object> entity, String field, Object value) {
        return (value instanceof String && "null".equals(value));
    }

    @Override
    public Object transform(Map<String, Object> entity, String field, Object value) {
        return "";
    }
}
